xm: Don't die when trying to conect the console to short-lived domains
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Jun 2009 09:46:13 +0000 (10:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Jun 2009 09:46:13 +0000 (10:46 +0100)
commita161e0d852981658b56c0de457e213f7d9b02c22
treebebc51258c4a0a434644b2708c49529cbcc7238b
parent45cb888069dc48379bf3c272ccb987609604e51a
xm: Don't die when trying to conect the console to short-lived domains

As observed by Mick Joran, if short-lived domain exits cleanly
then os.waitpid() will throw the following exception. This appears
to be because the child process that is used to start the domain
has detached from its parent.

OSError: [Errno 10] No child processes

Cc: Mick Jordan <Mick.Jordan@sun.com>
Signed-off-by: Simon Horman <horms@verge.ent.au>
tools/python/xen/xm/create.py